package com.gitee.xzb617.mybatis.query.condition;

import com.gitee.xzb617.mybatis.query.util.DbDateFormat;

/**
 * 日期时间格式查询条件
 * @author: XuZhibin
 * @date: 2023/12/29 15:37
 * @version: v1.0
 * @attention:
 */
public class DateCondition {

    private String columnValue;

    private String dateFormat;

    public DateCondition(String columnValue) {
        this.columnValue = columnValue;
        this.dateFormat = DbDateFormat.ORACLE.YYYY_MM_DD_HH24_MI_SS_1;
    }

    public DateCondition(String columnValue, String dateFormat) {
        this.columnValue = columnValue;
        this.dateFormat = dateFormat;
    }

    public String getColumnValue() {
        return columnValue;
    }

    public void setColumnValue(String columnValue) {
        this.columnValue = columnValue;
    }

    public String getDateFormat() {
        return dateFormat;
    }

    public void setDateFormat(String dateFormat) {
        this.dateFormat = dateFormat;
    }

}
